<template>
  <div>
    <div style="height:20px;"></div>
    <LazyLoadTab v-model="activeName" :tabMenus="menus"></LazyLoadTab>
    <div style="height:47px;"></div>

    <div
      :style="{
        position: 'absolute',
        left: 0,
        bottom: 0,
        right: 0,
        zIndex: 9,
        borderTop: '1px solid #e9e9e9',
        padding: '10px 20px',
        background: '#fff',
        textAlign: 'right'
      }"
    >
      <el-button @click="closeDrawer(1)">关 闭</el-button>

    </div>
  </div>
</template>
<script>
import {getDetail} from '@/api/omSale/subsidy/subsidyAudit/index.js'
export default {
  data(){
    return{
      json:{},
      activeName: '基础信息',
      menus: [
        {
          title: '基础信息',
          path: 'omSale/subsidy/subsidyInquiry/BasicsChildren',
          params:{
            data:this.json
          },

        },
        {
          title: '发票行驶证附件',
          path: 'omSale/subsidy/subsidyInquiry/InvoiceAttachment',
          params:{
            data:this.json
          },

        },
        {
          title: '车辆信息',
          path: 'omSale/subsidy/subsidyInquiry/carChildren',
          params:{
            data:this.json
          },

        },
        {
          title: '其他附件',
          path: 'omSale/subsidy/subsidyInquiry/otherModel',
          params:{
            data:this.json
          },

        },
      ]
    }
  },
  components:{
  },
  props:['rowData'],
  created(){
    this.getDetail(this.rowData)
  },
  methods:{
    async getDetail(data){
      let res=await getDetail({id:data.id})
      this.menus.map(x=>{
        x.params.data=res.data
      })

    },
    closeDrawer(){
      this.$emit('close')
    }
  }
}
</script>
